package com.xpc.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xpc.mapper.AffairClassificationMapper;
import com.xpc.pojo.AffairClassification;
import com.xpc.service.IAffairClassificationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 事务类型表(AffairClassification)表服务实现类
 *
 * @author makejava
 * @since 2022-04-25 22:23:11
 */
@Service("affairClassificationService")
public class AffairClassificationServiceImpl extends ServiceImpl<AffairClassificationMapper, AffairClassification> implements IAffairClassificationService {
    @Autowired
    private AffairClassificationMapper affairClassificationMapper;

    @Override
    public Page<AffairClassification> getPage(int currentPage, int pageSize) {
        Page page = new Page(currentPage, pageSize);
        affairClassificationMapper.selectPage(page,null);
        return page;

    }
}

